package com.zhx.user;

import java.util.Set;

import com.mysql.fabric.xmlrpc.base.Data;
import com.zhx.role.Role;

/**
 * 用户信息实体类
 * @author 演示
 *
 */
public class User {
	/**
	 * 主键id，自增
	 */
	private Integer id;
	
	/**
	 * 工号
	 */
	private String userId;
	/**
	 * 密码
	 */
	private String userPassword;
	/**
	 * 姓名
	 */
	private String userName;
	/**
	 * 创建时间
	 */
	private Data createTime;
	/**
	 * 更新时间
	 */
	private Data updateTime;
	/**
	 * 用户对应角色列表
	 */
	private Set<Role> roles;
	
	
	
	public User() {
		super();
	}

	

	public Integer getId() {
		return id;
	}



	public void setId(Integer id) {
		this.id = id;
	}



	public String getUserId() {
		return userId;
	}



	public void setUserId(String userId) {
		this.userId = userId;
	}



	public String getUserPassword() {
		return userPassword;
	}



	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}



	public String getUserName() {
		return userName;
	}



	public void setUserName(String userName) {
		this.userName = userName;
	}



	public Data getCreateTime() {
		return createTime;
	}



	public void setCreateTime(Data createTime) {
		this.createTime = createTime;
	}



	public Data getUpdateTime() {
		return updateTime;
	}



	public void setUpdateTime(Data updateTime) {
		this.updateTime = updateTime;
	}



	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	} 

}
